From: Joseph Mory Date: Fri, 30 May 2025 12:32:47 +0000 (+0800) Subject: luci-base: fix table option does not show in non-Bootstrap themes when it has depends X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=55c93e60b4e598e81eeb1774d5d83ac32b245016;p=project%2Fluci.git luci-base: fix table option does not show in non-Bootstrap themes when it has depends Signed-off-by: Joseph Mory --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 4c7cbce69d..f65d25e91a 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -3779,7 +3779,10 @@ const CBIValue = CBIAbstractValue.extend(/** @lends LuCI.form.Value.prototype */ E('div', { 'class': 'cbi-value-description' }, this.description.trim())); if (depend_list && depend_list.length) - optionEl.classList.add('hidden'); + if (in_table) + optionEl.firstChild.classList.add('hidden'); + else + optionEl.classList.add('hidden'); optionEl.addEventListener('widget-change', L.bind(this.map.checkDepends, this.map));